package com.liu.diy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 自定义切面
 */
public class text {
    public static void main(String[] args) {
        ApplicationContext ApplicationContext = new ClassPathXmlApplicationContext("diyPointcut.xml");
        //被动态代理的是接口，返回的也是接口
        Person person =  ApplicationContext.getBean("PersonImpl",Person.class);
        person.add();
        person.del();
    }
}
